package com.goktech.olala.server.dao.goods;

import com.goktech.olala.server.pojo.goods.GoodReport;
import java.util.List;

/**
 * @author sanming
 */
public interface GoodReportMapper {
    /**
     * 删除
     * @param goodsId
     * @return
     */
    int deleteByPrimaryKey(String goodsId);

    /**
     * 添加
     * @param record
     * @return
     */
    int insert(GoodReport record);

    /**
     * 根据goodsId查找
     * @param goodsId
     * @return
     */
    GoodReport selectByPrimaryKey(String goodsId);

    /**
     * 查找所有
     * @return
     */
    List<GoodReport> selectAll();

    /**
     * 更新
     * @param record
     * @return
     */
    int updateByPrimaryKey(GoodReport record);
}